package com.punai.standard.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.punai.common.core.domain.BaseEntity;
import com.punai.common.utils.converter.IsConverter;
import com.punai.common.utils.converter.PrefixConverter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 分包特征关联对象 sta_link_fb_feature
 *
 * @author zxw
 * @date 2022-12-13
 */
@ExcelIgnoreUnannotated
@ColumnWidth(20)
@HeadRowHeight(20)
public class StaLinkFeature extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ExcelProperty("ID")
    private String id;

    /**
     * 公司id
     */
    @ExcelIgnore
    private String versionId;

    /**
     * 关联费用项id
     */
    @ExcelProperty("关联费用项id")
    private String itemId;

    /**
     * 特征id
     */
    @ExcelProperty("特征id")
    private String featureId;

    /**
     * 选择的值
     */
    @ExcelProperty("选择的值")
    private String featureItem;

    @ExcelIgnore
    private String type;

    // 是否前缀
    @ExcelProperty(value = "特征类型",converter = PrefixConverter.class)
    private String isPrefix;
    // 是否主项
    @ExcelProperty(value = "是否主项",converter = IsConverter.class)
    private String isSubject;
    // 前后缀顺序
    @ExcelProperty("顺序")
    private Integer sequence;
    // 默认顺序
    @ExcelIgnore
    private Integer orderNum;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setVersionId(String versionId) {
        this.versionId = versionId;
    }

    public String getVersionId() {
        return versionId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getItemId() {
        return itemId;
    }

    public void setFeatureId(String featureId) {
        this.featureId = featureId;
    }

    public String getFeatureId() {
        return featureId;
    }

    public void setFeatureItem(String featureItem) {
        this.featureItem = featureItem;
    }

    public String getFeatureItem() {
        return featureItem;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public String getIsPrefix() {
        return isPrefix;
    }

    public void setIsPrefix(String isPrefix) {
        this.isPrefix = isPrefix;
    }

    public String getIsSubject() {
        return isSubject;
    }

    public void setIsSubject(String isSubject) {
        this.isSubject = isSubject;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("versionId", getVersionId())
                .append("itemId", getItemId())
                .append("featureId", getFeatureId())
                .append("featureItem", getFeatureItem())
                .append("type", getType())
                .toString();
    }
}
